翻訳と辞書
Words near each other
・ Order (mathematics)
・ Order (mouldings)
・ Order (music)
・ Order (number theory)
・ Order (ring theory)
・ Order (virtue)
・ Order 66 (podcast)
・ Order 66/2523
・ Order 7161
・ Order 8-September
・ Order and Chaos
・ Order and disorder (physics)
・ Order and Justice
・ Order book
・ Order book (trading)
Order by
・ Order code processor
・ Order condition
・ Order dimension
・ Order For Brave Miners' Work
・ Order For Courage
・ Order for Exceptional Merits (Slovenia)
・ Order for Lifelong Restriction
・ Order for Loyalty and Merit
・ Order For Merit
・ Order for Meritorious Service
・ Order for Merits to Lithuania
・ Order for Service to the Homeland in the Armed Forces of the USSR
・ Order for the International Merit of Blood
・ Order from Chaos


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Order by : ウィキペディア英語版
Order by
An ORDER BY clause in SQL specifies that a SQL SELECT statement returns a result set with the rows being sorted by the values of one or more columns. The sort criteria do not have to be included in the result set. The sort criteria can be expressions, including – but not limited to – column names, user-defined functions, arithmetic operations, or CASE expressions. The expressions are evaluated and the results are used for the sorting, i.e. the values stored in the column or the results of the function call.
ORDER BY is the ''only'' way to sort the rows in the result set. Without this clause, the relational database system may return the rows in any order. If an ordering is required, the ORDER BY must be provided in the SELECT statement sent by the application. Although some database systems allow the specification of an ORDER BY clause in subselects or view definitions, the presence there has no effect. A view is a logical relational table, and the relational model mandates that a table is a set of rows, implying no sort order whatsoever. The only exception are constructs like ORDER BY ORDER OF ... (not standardized in SQL:2003) which allow the propagation of sort criteria through nested subselects.
The SQL standard's core functionality does not explicitly define a default sort order for Nulls. With the SQL:2003 extension T611, "Elementary OLAP operations", nulls can be sorted before or after all data values by using the NULLS FIRST or NULLS LAST clauses of the ORDER BY list, respectively. Not all DBMS vendors implement this functionality, however. Vendors who do not implement this functionality may specify different treatments for Null sorting in the DBMS.〔(【引用サイトリンク】 NULL Handling in SQLite Versus Other Database Engines )
Structure ORDER BY ... DESC will order in descending order, otherwise ascending order is used. (The latter may be specified explicitly using ASC.)
== Examples ==


SELECT
* FROM Employees
ORDER BY LastName, FirstName

This sorts by the LastName field, then by the FirstName field if LastName matches.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Order by」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.